package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.Album;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface AlbumDao {
	public void insert(Album album) throws AppBusinessException;

	public List<Album> getList(Map<String, Object> map)
			throws AppBusinessException;
	
	
	public int getListCount(Map<String, Object> map)throws AppBusinessException;

	public void update(Album album) throws AppBusinessException;

	public void deleteById(String id) throws AppBusinessException;

	public Album getById(String id) throws AppBusinessException;
	
	public List<Album> getAlbumList(String member)throws AppBusinessException;
	
	/**
	 * 得到好友的照片专辑
	 * @param map
	 * @return
	 * @throws AppBusinessException
	 */
	public List<Album> getAlbumFriend(Map<String, Object> map)throws AppBusinessException;
	
	public int getAlbumFriendCount(Map<String, Object> map)throws AppBusinessException;
	
}
